import 'package:get/get.dart';
import 'package:raze/realms/main_realms/login_realms.dart';
import 'package:raze/realms/main_realms/main_realms.dart';
import 'package:raze/realms/main_realms/register_realms.dart';
import 'package:raze/realms/main_realms/splash_realms.dart';
import 'package:raze/realms/navigation_one_realms/environment_realms.dart';
import 'package:raze/realms/navigation_one_realms/knowledge_discourse_realms.dart';
import 'package:raze/realms/navigation_one_realms/luck_plant_realms.dart';
import 'package:raze/realms/navigation_one_realms/message_list_realms.dart';
import 'package:raze/realms/navigation_one_realms/query_vault_realms.dart';
import 'package:raze/realms/navigation_one_realms/single_chat_realms.dart';
import 'package:raze/realms/navigation_one_realms/video_call_realms.dart';
import 'package:raze/realms/navigation_three_realms/diary_detail_realms.dart';
import 'package:raze/realms/navigation_two_realms/community_detail_realms.dart';
import 'package:raze/realms/navigation_two_realms/video_player_realms.dart';
import 'package:raze/realms/navigation_four_realms/other_home_realms.dart';
import 'package:raze/realms/navigation_four_realms/settings_realms.dart';
import 'package:raze/realms/navigation_two_realms/group_chat_realms.dart';
import 'package:raze/realms/navigation_two_realms/group_list_realms.dart';
import 'package:raze/realms/publish_realms/publish_realms.dart';

/// 应用路由配置
/// 使用 GetX 路由管理
class AppPortals {
  /// 获取所有路由配置
  static List<GetPage> getPages() {
    return [
      // 启动页
      GetPage(name: '/splash', page: () => const SplashRealms()),
      // 登录页
      GetPage(name: '/login', page: () => const LoginRealms()),
      // 注册页
      GetPage(name: '/register', page: () => const RegisterRealms()),
      // 主页面
      GetPage(name: '/main', page: () => const MainRealms()),
      // 发布页面
      GetPage(name: '/publish', page: () => const PublishRealms()),
      // 搜索页面
      GetPage(name: '/query', page: () => const QueryVaultRealms()),
      // 幸运植物页面
      GetPage(name: '/fortune-flora', page: () => const LuckPlantRealms()),
      // 环保教育页面
      GetPage(name: '/environment', page: () => const EnvironmentRealms()),
      // 问答详情页面
      GetPage(
        name: '/knowledge-discourse',
        page: () => const KnowledgeDiscourseRealms(),
      ),
      // 消息列表页面
      GetPage(name: '/message-list', page: () => const MessageListRealms()),
      // 单聊页面
      GetPage(name: '/single-chat', page: () => const SingleChatRealms()),
      // 视频通话页面
      GetPage(name: '/video-call', page: () => const VideoCallRealms()),
      // 日志详情页面
      GetPage(name: '/diary-detail', page: () => const DiaryDetailRealms()),
      // 社区详情页面
      GetPage(
        name: '/community-detail',
        page: () => const CommunityDetailRealms(),
      ),
      // 视频播放页面
      GetPage(name: '/video-player', page: () => const VideoPlayerRealms()),
      // 圈子列表页面
      GetPage(name: '/group-list', page: () => const GroupListRealms()),
      // 圈子聊天页面
      GetPage(name: '/group-chat', page: () => const GroupChatRealms()),
      // 他人主页页面
      GetPage(name: '/other-home', page: () => const OtherHomeRealms()),
      // 设置页面
      GetPage(name: '/settings', page: () => const SettingsRealms()),
    ];
  }

  /// 初始路由
  static const String initialRoute = '/splash';
}
